﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace tuReserva.Model
{
	public class Restaurant
	{
		public int ID { get; set; }
		public User User { get; set; }
		public String Name { get; set; }
		public String Address { get; set; }
		public String Telephone { get; set; }
		public decimal Points { get; set; }
		public Category Category { get; set; }
		public byte[] Photo { get; set; }
		public String Open_time { get; set; }
		public String Close_time { get; set; }
		public String Open_days { get; set; }
		public String Description { get; set; }
		public List<Table> TableList { get; set; }

		public bool isNew
		{
			get	
			{
				return this.ID.Equals(0);
			}
		}

		public Restaurant()
		{
			this.ID = 0;
			this.Name = "Nuevo Restaurante";
			this.Address = String.Empty;
			this.Telephone = String.Empty;
			this.Points = 0;

			this.Category = new Category();
			this.Category.ID = 1;

			this.Open_time = "13:00:00";
			this.Close_time = "23:59:00";
			this.Open_days = "L,M,M,J,V,S,D";

			this.Description = String.Empty;

			this.TableList = new List<Table>();
		}
	}
}
